<?php

class PluginPost extends APlugin
{
	private $post;
	private $show_comment_count;

	public function load($show_comment_count=true)
	{
		ApplicationFramework::get()->addInclude($this->getPath('css/plugin_post.css'),'css');
		$this->show_comment_count = $show_comment_count;
	}

	public function setPost($post)
	{
		$this->post = $post;
	}

	public function display()
	{
		$this->assign('show_comment_count', $this->show_comment_count);
		$this->assignRef('post', $this->post);
		return $this->tpl->fetch($this->getTemplate());
	}
}

?>
